home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
metkit
/
finddlg.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-06-07
|
2KB
|
76 lines
// Copyright (C) 1996, 1997 Meta Four Software. All rights reserved.
//
// Find dialog sample code
//
//! rev="$Id: finddlg.h,v 1.3 1997/05/27 00:06:11 jcw Rel $"
/////////////////////////////////////////////////////////////////////////////
// This edit control catches some of the keys to avoid illegal filenames
class CMyEdit : public CEdit
{
public:
CMyEdit (bool f_ =false) : acceptDot (f_) { }
protected:
bool acceptDot;
// Generated message map functions
//{{AFX_MSG(CMyEdit)
afx_msg void OnChar(UINT nChar, UINT nRep, UINT nFlags) ;
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CFindDialog dialog
class CFindDialog : public CDialog
{
// Construction
public:
CFindDialog(CWnd* pParent = NULL); // standard constructor
bool Execute(const char* name);
// Dialog Data
//{{AFX_DATA(CFindDialog)
enum { IDD = IDD_FIND_DIALOG };
CString m_maxDate;
CString m_minDate;
CString m_nameEdit;
BOOL m_singleCat;
CString m_minSize;
CString m_maxSize;
//}}AFX_DATA
bool NeedsCompare() const;
bool Match(const c4_RowRef& row_) const;
// Implementation
private:
CMyEdit m_nameEditCtrl;
CString m_currCatName;
bool m_checkName, m_checkDate, m_checkSize;
CString m_upName;
int m_loDate;
int m_hiDate;
long m_loSize;
long m_hiSize;
void FixCriteria();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Generated message map functions
//{{AFX_MSG(CFindDialog)
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////